package entity

// 定义 Member 结构体
type Member struct {
	/*
		NameValid 自定义校验
		\ginDemo\validator\member\member.go ; v.RegisterValidation("NameValid", member.NameValid)
	*/
	Name string `form:"name" json:"name" binding:"required,NameValid"`
	//Name string `form:"name" json:"name" binding:"required"`
	Age int `form:"age"  json:"age"  binding:"required,gt=10,lt=120"`
}
